package com.stenio.fancat.domain.baby;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import com.stenio.fancat.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 宝宝信息基本类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_baby_account")
public class BabyAccount extends BaseEntity {

    /** 序列化ID */
    private static final long serialVersionUID = 5883902360965959955L;
    /** 自增主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** babyId */
    @TableField("baby_id")
    private String babyId;
    /** baby昵称 */
    @TableField("nickname")
    private String nickName;
    /** baby生日 */
    @TableField("birthday")
    private Date birthday;
    /** baby性别 */
    @TableField("gender")
    private Integer gender;
    /** baby剩余candy */
    @TableField("surplus_candy")
    private Integer surplusCandy;
    /** 版本 */
    @TableField("version")
    @Version
    private Integer version;
    /** baby总共candy */
    @TableField("total_candy")
    private Integer totalCandy;
    @TableField("status")
    private Integer status;
}
